<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Dashboard extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
		if(!$this->session->userdata('user_id')){
			redirect('/',301);
		}
	}
	
	public function index()
	{
		$data['title']='Dashboard';
		$data['activity']=$this->activities->getAllActivity('',$this->session->userdata('user_id'),'id','DESC',0,5);
		$data['content'] = 'dashboard';
		$this->load->view('index',$data);
	}
	
	
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */